package com.dk.strategy;

import com.dk.config.CodePart;
import com.dk.model.AutoCodePart;
import org.springframework.stereotype.Component;

@Component
@CodePart(partType = "INPUTCHAR")
public class InputcharStrategy implements CodeStrategyHandler {
    @Override
    public StringBuffer code(AutoCodePart part) {
        //拼接字符串
        StringBuffer buffer = new StringBuffer();
        String inputCharacter = part.getInputCharacter();
        buffer.append(inputCharacter);
        return buffer;
    }
}
